package com.lrm.interceptor;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: 王金海
 * @Description: 登陆拦截器
 * @Date: Created by Administrator on 2017/11/30.
 * @Modified By:
 */
public class LoginInterceptor extends HandlerInterceptorAdapter {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        if (request.getSession().getAttribute("user")==null) {
//            throw new MyException("用户未授权",415);
//        }
        return true;
    }
}
